
#[derive(Default)]
pub struct BreakPoint {
    value: u64
}

impl BreakPoint {
    pub fn get(&self) -> u64 {
        self.value
    }
    pub fn set(&mut self, value: u64) {
        self.value = value;
    }
}

#[cfg(test)]
mod test {
    use super::*;

    #[test]
    fn test_breakpoint(){
        let mut bp = BreakPoint{ value: 0};
        assert_eq!(0, bp.get());
        bp.set(1);
        assert_eq!(1, bp.get());
    }
}
